package com.easyaccount.bean;

import com.easyaccount.model.Menu;

import java.util.List;

public class MenuTree {
    private Integer menuId;

    private String menuName;

    private String menuPath;

    private Integer parentId;

    private Integer orderNum;

    private List<MenuTree> childrens;

    public List<MenuTree> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<MenuTree> childrens) {
        this.childrens = childrens;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName == null ? null : menuName.trim();
    }

    public String getMenuPath() {
        return menuPath;
    }

    public void setMenuPath(String menuPath) {
        this.menuPath = menuPath == null ? null : menuPath.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return "MenuTree{" +
                "menuId=" + menuId +
                ", menuName='" + menuName + '\'' +
                ", menuPath='" + menuPath + '\'' +
                ", parentId=" + parentId +
                ", orderNum=" + orderNum +
                ", childrens=" + childrens +
                '}';
    }
}
